package com.tang.model.adpater.power.classAdapter;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/8/25 20:29
 * @Desc
 * @Remarks
 */
public class PowerAdapter extends AC220V implements DC5V {

    @Override
    public int outputDC5V() {
        int ac = outputAC220V();
        int dc = ac / 44;
        System.out.println("经过适配器的转换，已经将：" + ac + "V,转换为：" + dc + "V");
        return dc;
    }
}
